﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-trasitional.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link rel="stylesheet"
			href="/static/css/table.css" type="text/css">
		<script type="text/javascript"
			src="/static/javascript/comm/comm.js">
		</script>
		<!--以下3个js库必须按照顺序引入-->
		<!--vue脚本库-->
		<script type="text/javascript"
				src="/static/js/vue-3.2.4.global.js">
			<!--axios脚本库-->
		</script>
		<script type="text/javascript"
				src="/static/js/axios-0.18.0.min.js">
		</script>
		<!--我们自己封装的axios函数库 -->
		<script type="text/javascript"
				src="/static/js/axios-helper.js">
		</script>
	</head>
	<body id="app">
		<form name="configfilefirstkindForm" method="post"
			action="first_kind_change_success.html">
			<table width="100%">
				<tr>
					<td>
						<font color="black">您正在做的业务是：人力资源--客户化设置--人力资源档案管理设置--I级机构设置--I级机构变更
						</font>
					</td>
				</tr>
				<tr>
					<td align="right">
						<input type="button" value="提交" @click="submit()" class="BUTTON_STYLE1" />
						<input type="button" value="返回" class="BUTTON_STYLE1"
							onclick="history.back();">
					</td>
				</tr>
			</table>

			<table width="100%" border="1" cellpadding=0 cellspacing=1
				bordercolorlight=#848284 bordercolordark=#eeeeee
				class="TABLE_STYLE1">
				<input type="hidden" v-model="configFileFirstKind.ffkId" />
				<tr>
					<td width="19%" class="TD_STYLE1">
						I级机构编号
					</td>
					<td width="81%" class="TD_STYLE2">
						<input type="text" v-model="configFileFirstKind.firstKindId"
							disabled="disabled" class="INPUT_STYLE1">
					</td>
				</tr>
				<tr>
					<td class="TD_STYLE1">
						I级机构名称
					</td>
					<td class="TD_STYLE2">
						<input type="text" v-model="configFileFirstKind.firstKindName"
							   disabled="disabled" class="INPUT_STYLE1">
					</td>
				</tr>
				<tr>
					<td class="TD_STYLE1">
						薪酬发放责任人编号（多个编号之间请用"半角逗号"加"一个空格"隔开，如", "）
					</td>
					<td class="TD_STYLE2">
						<textarea v-model="configFileFirstKind.firstKindSalaryId" rows="4"
							class="TEXTAREA_STYLE1">1</textarea>
					</td>
				</tr>
				<tr>
					<td class="TD_STYLE1">
						销售责任人编号（多个编号之间请用"半角逗号"加"一个空格"隔开，如", "）
					</td>
					<td class="TD_STYLE2">
						<textarea v-model="configFileFirstKind.firstKindSaleId" rows="4"
							class="TEXTAREA_STYLE1">1</textarea>
					</td>
				</tr>
			</table>
		</form>
	</body>
	<script type="module">
		Vue.createApp({
			data(){
				return{
					configFileFirstKind:{
						//主键，自动增长列
						ffkid:null,
						//一级机构编号
						firstKindId:null,
						//一级机构名称
						firstKindName:null,
						//一级机构薪酬发放责任人编号
						firstKindSalaryId:null,
						//一级机构销售责任人编号
						firstKindSaleId:null
					}
				}
			},
			created(){
				requestGet("/configFileFirstKind/queryById",{
					ffkid:sessionStorage.getItem("ffkid")
				}).then((data)=>{
					console.info(data);
					this.configFileFirstKind=data;
				})
			},
			methods:{
				submit(){
					requestPostman("/configFileFirstKind/save",this.configFileFirstKind).then((data)=>{
						if(data.statusCode==1){
							window.location.href="/templates/page/client/first_kind_change_success.html"
						}else{
							alert("修改失败");
						}
					})
				}
			}
		}).mount("#app");
	</script>
</html>
